cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)

PROJECT(ParseBDF)
if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
	SET(CMAKE_DEBUG_POSTFIX "_d")
endif()

set(BDF_CODE
	ReadBDF.cpp
	ReadBDF.h
)

file(GLOB bdf_py_file ${CMAKE_SOURCE_DIR}/parsebdf/*.py)
file(COPY ${bdf_py_file} DESTINATION ${WORK_DIR})

add_library(${PROJECT_NAME} SHARED ${BDF_CODE} ${IBE_VTK_H})
target_link_libraries(${PROJECT_NAME} ${PYTHON_LIBS} )
target_link_libraries(${PROJECT_NAME} ${VTK_LIBRARIES} )